package com.weibo.basic.alg.alert.server.service;

import com.weibo.basic.alg.alert.server.domain.PostMsgReturn;
import com.weibo.basic.alg.alert.server.domain.RefreshAccessTokenReturn;
import com.weibo.basic.alg.alert.server.domain.WechatTextMessage;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface WechatAPI {

    @POST("/cgi-bin/message/send")
    Call<PostMsgReturn> postMessage(@Query("access_token") String accessToken, @Body
        WechatTextMessage textMessage);

    @GET("/cgi-bin/gettoken")
    Call<RefreshAccessTokenReturn> getToken(@Query("corpid") String corpid, @Query("corpsecret") String corpsecret);
}
